package com.atguigu.mapper;

import com.atguigu.pojo.Employee;

import java.util.List;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-02-07
 * @Description:
 * @Version: 1.0
 */
public interface EmployeeMapper {
    /**
    * @Author:liuaojun
    * @Date:2025-02-07 15:51
    * @Description:根据员工ID查询员工信息及部门信息
    */
    Employee getEmployeeById(Integer id);

    /**
    * @Author:liuaojun
    * @Date:2025-02-07 17:11
    * @Description:根据ID查询员工
    */
    List<Employee> getAllEmp();

    /**
    * @Author:liuaojun
    * @Date:2025-02-07 19:09
    * @Description:新增员工
    */
    void insertEmp(Employee employee);

    /**
    * @Author:liuaojun
    * @Date:2025-02-07 19:32
    * @Description:修改
    */
    void updateEmp(Employee employee);

    void deleteEmp(Integer id);


}
